#pragma once

#include "Server.h"

class CMainSvr : public CServer
{
public:
    CMainSvr();
    ~CMainSvr();

    void *operator new(size_t sz);
    void operator delete(void *ptr);

public:
    bool Init(int *fds);
    // bool Start();
    // bool Stop();
    bool Destroy();

private:
    bool ErrorEvent(epoll_event &ee);
    bool InputEvent(epoll_event &ee);
    bool OutputEvent(epoll_event &ee);
    bool IpcCmdEvent(IpcPkgBuf &pbRecv);

private:
    /* data */
};
